package com.zhl.actor;

/**
 * Created by Administrator on 2018/12/29.
 */
public class HelloActor extends BaseActor {

    public HelloActor(String id) {
        this.actorKey = id;
    }

    //此方法中进行业务处理
    @Override
    public void onReceive(Object o) throws Exception {
        if (o instanceof String){
            String message = (String)o;
            System.out.println(message+this.actorKey);

        }
        postStop();
    }



}
